<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>发票管理—索取发票</title>
<link href="/css/user/buy/css.css" rel="stylesheet" type="text/css" />
<link href="/css/user/users/member_center.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="/css/dialog.css" />
<link type="text/css" rel="stylesheet" href="/css/user/users/bstuser_global.css" />
<link type="text/css" rel="stylesheet" href="/css/user/users/invoiceDemandDetail.css" />
<script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src = "/js/dialog.min.js"></script>
<script type="text/javascript" src = "/js/bstdialog.min.js"></script>
<script type="text/javascript" src="/js/member-center.js"></script>
<script type="text/javascript" src="/js/user/users/member_center/menu_line.js"></script>
<script type="text/javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/ajaxDataFormat.js"></script>
<script type="text/javascript" src="/js/place.js"></script>
<script src="/js/user/users/finance/invoice_manage/invoiceDemandDetail.js"></script>

</head>
<body>
	<div class="Wrapper">
		<!--财务管理头部-->
		<jsp:include page="../../../common/member/memberHeader.jsp"></jsp:include>
		<!--财务管理头部-->
		<!--财务管理中间部分-->
		<div class="uc_bd mt20 mb20 ">
			<div class="uc_layer">
				<div class="account">
					<!--财务管理左侧-->
					<jsp:include page="../../../common/finance/finance_left.jsp"></jsp:include>
					<!--财务管理左侧-->
					<!--基本资料右侧-->
					<div class="member_r fr">
						<div class="uitopb uitopb_border">
							<div class="lm-t tabs">财务管理>发票管理</div>
							<div class="uc_content order">
								<!--索取发票详细信息开始-->
	
								
								<div id="content" class="f-billing-layout">
									  <form name="billingFrom" action="/invoice/createSubmit" method="POST">
									    <div class="f-title">
									      <h1>发票索取</h1>
									
									    </div>
									    <!--  new info s                         -->
									    <div class="y-info y-mt5 y-clearfix f-billing-head">
									      <div class="info-box-2">
									        <div class="info-top"><span
									            class='y-left'>您选取了 <i>1</i> 条单据开具发票 </span><span class='y-right'>开票金额合计：<i
									            class="y-orange"><span class="y-yen">&yen;</span><span id="maxaccount"><fmt:formatNumber  value="${userInfo.invoiceMoney}" pattern="#0.00"/></span></i> </span>
									        </div>
									        <div class="info-mid y-clear">
									          <span>发票抬头：${invoiceModel.invoiceTitle}</span>
									          <span>开具类型：<c:if test="${invoiceModel.openType==0}">个人</c:if>
									          				<c:if test="${invoiceModel.openType==1}">企业</c:if>
									          </span>
									          <span>发票类型：<c:if test="${invoiceModel.invoiceType==0}">增值税普票</c:if>
									          				<c:if test="${invoiceModel.invoiceType==1}">增值税专票</c:if>
									          </span>
									        </div>
											<p>发票金额（元）：<input type="text" class="invoice_account" name="invoice_account"></p>
									      </div>
									    </div>
									    <!--  new info e                         -->
									
									    <div class='f-spacer'></div>
									    <div class="f-title-1 ">
									      <span class=' y-left'>寄送地址：<span class="y-pale ">将以快递（免费）方式寄送给您</span></span>
									
									      <span class='  y-right'><a target="_blank" href="/finance/address/addressList">管理寄送地址</a>  </span>
									    </div>
									    
									    <div class="f-list-2 ">
									      <dl>
									        <c:forEach items="${addressVos}" var="address">
									        	<c:choose>
									        		<c:when test="${address.isDefault == 1}">
									        			<dd>
											        	  <span class="y-span1-2"><input type='radio' name='invoiceradio' checked='checked' class='f-add-radio' data-addressid="${address.addressId}"/></span>
												          <span class="y-span6">${address.receiverName}  ${address.userTel}  ${address.provinceCodeName} ${address.cityCodeName} ${address.areaCodeName} ${address.streetAddress} ${address.postCode} </span>
												          <input type="hidden" class="f-default-address" value="200197291"/>
												          <span class="y-span1-3 f-default ">
													      	<i class="y-pale">默认地址</i>
												          </span>
												          	<span class="y-span3 f-set">
												          		  <a class="y-pale y-hide f-set-a" href="javascript:void(0);" data-id="${address.addressId}">设为默认</a>
													              <a class="f-set-edit" data-info="${address.addressId}"> 修改 </a> |
													              <a class="f-add-del" data-addressid="${address.addressId}">删除 </a>
												          	</span>
											        	</dd>
									        		</c:when>
									        		<c:otherwise>
									        			<dd data-add='1'>
											        	  <span class="y-span1-2"><input type='radio' name='invoiceradio' class='f-add-radio' data-addressid="${address.addressId}"/></span>
												          <span class="y-span6">${address.receiverName}  ${address.userTel}  ${address.provinceCodeName} ${address.cityCodeName} ${address.areaCodeName} ${address.streetAddress} ${address.postCode} </span>
												          <input type="hidden" class="f-default-address" value="200197291"/>
											          		<span class="y-span3 y-hide f-set">
															  <a class="y-pale f-set-a" href="javascript:void(0);" data-id="${address.addressId}">设为默认</a>
												              <a class="f-set-edit" data-info="${address.addressId}"> 修改 </a> |
												              <a class="f-add-del" data-addressid="${address.addressId}">删除 </a>
											          		</span>
											        	</dd>
									        		</c:otherwise>
									        	</c:choose>
									        </c:forEach>
									      </dl>
									    </div>
									      <div class='f-title-1'>
									        <a class="f-address-add"> + 使用新地址：</a><span class="y-pale">(最多保存5个地址)</span>
									      </div>
									    <div class="f-submit y-mt2">
									      <button type="button" class="y-btn-blue f-do-invoice">提交</button>
									      <a class="y-btn-white f-cancel" href="javascript:history.back(-1)">取消</a>
									      <input type='hidden' name='orders' class='form_orders' value='[&quot;15162995&quot;]'/>
									      <input type='hidden' name='_csrf' value='x8B6tpySEF15UNODqRuiaOepkDV2eIEmr+/xA='/>
									      <input type='hidden' name='countOfSelectedOrders' class='form_countOfSelectedOrders'
									             value='1'/>
									      <input type='hidden' name='amount' class='form_amount' value='9148'/>
									    </div>
									    <!--  修改发票   e               -->
									
									  </form>
								</div>
								
								
								<!--索取发票详细信息结束-->
							</div>
						</div>
					</div>
					<!--财务管理右侧-->
					<div class="cl"></div>
				</div>
			</div>
		</div>
		<!--财务管理中间部分-->
		<!---------------------------------footer------------------------------------>
		<jsp:include page="../../../common/footer.jsp" />
		<!---------------------------------footer结束------------------------------------>
	</div>
</body>
</html>
